• Manager API to control View Annotations.

    View annotations are UIView instances that are drawn on top of the MapView and bound to some Geometry (only Point is supported for now). In case some view annotations intersect on the screen Z-index is based on addition order.

    View annotations are invariant to map camera transformations however such properties as size, visibility etc could be controlled by the user using update operation.

    View annotations are not explicitly bound to any sources however associatedFeatureId could be used to bind given view annotation with some Feature by Feature.identifier meaning visibility of view annotation will be driven by visibility of given feature.

    See more

    Declaration

    Swift

    public final class ViewAnnotationManager
  • An interface you use to detect when the map view lays out or updates visibility of annotation views.

    When visible portion of a map changes, e.g. responding to the user interaction, the map view adjusts the positions and visibility of its annotation views. Implement methods of ViewAnnotationUpdateObserver to detect when the map view updates position/size for supplied annotation views. As well as when annotation views get show/hidden when going in/out of visible portion of the map.

    To register an observer for view annotation updates, call the addViewAnnotationUpdateObserver(_:) method.

    See more

    Declaration

    Swift

    public protocol ViewAnnotationUpdateObserver : AnyObject
  • Stores layout and visibilty settings for a ViewAnnotation

    See more

    Declaration

    Swift

    public struct ViewAnnotationOptions : Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum ViewAnnotationManagerError : Error